package com.wyh.Mapper;

import com.wyh.pojo.Contract;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ContractMapper {
    public List<Contract> getContractList();

    public Contract getContractById(int id);

    public List<Contract> getContractByName(String name);

    public int addContract(Contract contract);

    public int updateContract(Contract contract);

    public int deleteContract(int id);
}
